home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Spiele & Edutainment / X-Plane Demo 2.752 / DATA / readme.txt < prev   
Text File  |  1996-12-16  |  6KB  |  131 lines

  1.  
  2. How to generate your own environment files:
  3.  
  4. Environment files in X-Plane are simply cartesian grids, 1 degree in longitude wide and 1 degree in latitude tall, whose filename is the latitude and longitude of the file, where each of the grid point in the cartesian grid has the following information:
  5.     x-location of gridpoint  (distance east of lower-left corner)
  6.     y-location of gridpoint    (distance north of lower-left corner)
  7.     z-location of gridpoint  (elevation above sea-level)
  8.     information about the quadrilateral that is associated with the gridpoint
  9.  
  10. Say you have a tic-tac-toe board.
  11. This is a cartesian grid, 3x3 units.
  12. Each of the 9 quadrilaterals (squares) can be broken down ino 2 triangles.
  13.  
  14. Imagine setting the elevation of each of the VERTICES (points where lines cross) of the
  15. tic-tac-toe board to some elevation (there are 16 vertices on a tic-tac-toe board, if
  16. you put a frame around the board like a chess board). Now imagine breaking the tic-tac-toe
  17. board down into 18 triangles. (You had 9 squares before. You just represent each square as
  18. 2 triangles.) Now scoot the vertices around a bit to keep things interesting... not perfectly
  19. lined up! That is what it is like to generate a scenery file for X-Plane. Notice that every
  20. vertex (EXCEPT the ones on the top and right edges) is the lower-left corner of a quadrilateral
  21. (square). That square is said to be owned by that vertex in X-Plane terminology. When we specify
  22. data about that vertex, we are specifying data about the square that has that vertex as the
  23. square's lower-left corner.
  24.  
  25. Look at an existing environment file while you read this.
  26. The letter of the file should be an A if the file is generated on an Apple (Macintosh), an I
  27. if the file is generated on an IBM-clone.
  28.  
  29. The next line should be the file version number. Enter the same version number as in the files
  30. that shipped with your copy of X-Plane. After the number, you may put in any comments desired.
  31.  
  32. The next line should be the file type, which is 1001. Follow this with any comment.
  33.  
  34. Then enter the i and j size of the file,which must be 38 and 50 in current versions of X-Plane.
  35. The i-counter is the number of gridpoints in the x (east) direction. The j-counter is the
  36. number of gridpoints in the j (north) direction.
  37.  
  38. Now comes the data for each gridpoint... all in a line.
  39.  
  40. Now, for each of the gridpoints in the cartesian grid, enter the following data on a line:
  41.     x location in meters (distance east from SW corner of file)
  42.     y location in meters (distance north from SW corner of file)
  43.     z location (elevation) in meters (from sea level)
  44.     0 or 1 division direction...
  45.           0 divides the quadrilateral owned by the vertex top left to bottom right
  46.           1 divides the quadrilateral owned by the vertex bottom left to top right
  47.           the first triangle is the one on the left
  48.           the second triangle is the one on the right
  49.     0 or 1 wether or not first triangle is water
  50.     0 or 1 wether or not second triangle water
  51.     0 or 1 wether or not first triangle has an airport touching it
  52.     0 or 1 wether or not second triangle has an airport touching it
  53.  
  54. The ORDER the points are listed in matters, of course. You can tell what the order should be by
  55. looking at the x and y values of the data-points in one of the files that shipped with X-Plane.
  56. We start at the lower left (south-west) corner (0 x  0 y) and work to the east until we have
  57. travelled 1 degree of longitude, then go up (north) a bit and do the whole thing again. Do this
  58. until you get tired of it, then do it a while longer, and you will be done!
  59.  
  60. After entering the environment geometry, put in a bunch of airports and navaids and stuff.
  61.  
  62. Here is an example of the airport format:
  63.  
  64. a 41510    50004    41783    50271    100    1  5000   150 308 30  x  4000   100 257 25  x 0 AAA Drop-In
  65.  
  66. Here is a description of the airport format:
  67.  
  68. a        this nav device is an airport
  69. 41510    east/west   distance from lower-left-corner of the environment file to the start of the first runway in meters
  70. 50004    north/south distance from lower-left-corner of the environment file to the start of the first runway in meters
  71. 41783    east/west   distance from lower-left-corner of the environment file to the start of the second runway in meters
  72. 50271    north/south distance from lower-left-corner of the environment file to the start of the second runway in meters
  73. 100        elevation of airport in meters above mean sea level
  74. 1        nav device type
  75. 5000    length of first runway in feet
  76. 150        width of first runway in feet
  77. 308        heading in first runway degrees true
  78. 30        runway number
  79. x        runway is L/R/neither (x for neither, L for left, R for right)
  80. 4000    length of second runway in feet
  81. 100        width of second runway in feet
  82. 257        heading in second runway degrees true
  83. 25        runway number
  84. x        runway is L/R/neither (x for neither, L for left, R for right)
  85. 0        ILS code... 0 means no ILS's at airport, 1 means ILS to first runway, 2 means ILS to second runway, 3 means ILS's to BOTH runways!
  86. AAA        airport identifier
  87. Drop-In    airport name
  88.  
  89. When you enter your airports, make sure everything lines up perfectly and that all the data is there!
  90.  
  91. Here are the "nav device types" mentioned above:
  92.  
  93.    civil airport    = 1
  94.    civil/military    = 2
  95.    military aiport    = 3
  96.    ndb                = 4
  97.    vor                = 5
  98.    outer marker        = 6
  99.    middle marker    = 7
  100.    inner marker        = 8
  101.    ils                = 9
  102.    loc                =10
  103.  
  104.  
  105.  
  106. Here is an example of the NAVAID format:
  107.  
  108. n 89361    55560    89361    55560    56      4  105    0    0 AAA Macintosh NDB
  109.  
  110.  
  111. Here is a description of the NAVAID format:
  112.  
  113. n                nav device is a NAVAID (not airport)
  114. 89361            east/west   distance to NAVAID part 1, in meters
  115. 55560            north/south distance to NAVAID part 1, in meters
  116. 0                east/west   distance to NAVAID part 2, in meters
  117. 0                north/south distance to NAVAID part 2, in meters
  118. 56                elevation, above mean sea level
  119. 4                NAVAID type
  120. 105                frequency integers
  121. 0                frequency 100th's
  122. 0                heading of NAVAID, degrees true (only matters for ILS and LOC)
  123. AAA                NAVAID identifier
  124. Macintosh NDB    name of the NAVAID, in this case named after the world's best computer
  125.  
  126.  
  127.  
  128. NAVAID part 1 & 2
  129.  
  130. for NDB's, VOR's, localizers, and markers, part 1 is the only part you have to worry about... just enter 0
  131. for the other parts... for ILS's, part 1 is the localizer, part 2 is the glideslope.